package com.example.portdemo.date.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.portdemo.date.model.FinanceEntity;

import java.util.List;

@Dao
public interface FinanceDao {
    @Insert
    void insertAll(FinanceEntity... financeEntities);

    @Query("SELECT * FROM finance")
    List<FinanceEntity> getFinanceList();
}